<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/8/7
  Time: 16:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@include file="/WEB-INF/jsp/public/header.jsp" %>
<%@include file="/WEB-INF/jsp/public/nav.jsp" %>

<div class="container-fluid">
    <div class="row">
        <div class="left col-sm-2">
            <%@include file="/WEB-INF/jsp/public/menu.jsp" %>
        </div>
        <div class="right col-sm-10">
            <ol class="breadcrumb">
                <li><a href="#">首页</a></li>
                <li>商品出售</li>
            </ol>
            <div class="panel panel-danger">
                <div class="panel-heading">
                    商品出售
                </div>
                <div class="panel-body">
                    <h2>${msg}</h2>
                    <table class="table table-bordered table-striped">
                        <tr>
                            <th>商品名称</th>
                            <th>商品单价</th>
                            <th>操作</th>
                        </tr>
                        <c:forEach items="${list}" var="goods">
                            <tr>
                                <td align="center">${goods.name}</td>
                                <td align="center">${goods.price}</td>
                                <td align="center"><a href="userbuy.do?id=${goods.id}">出单</a></td>
                            </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<%@include file="/WEB-INF/jsp/public/footer.jsp"%>
